public class Test {
    public static int diGui(int n) {
        System.out.println("递归开始,n="+n);
        if(n==1) {
            System.out.println("递归结束,n=1 ret=1");
            return 1;
        }
        int ret = n * diGui(n-1);
        System.out.println("递归结束,n="+n+",ret="+ret);
        return ret;
    }
    public static void main1(String[] args) {
        int ret = diGui(5);
        System.out.println("ret="+ret);
    }
}
